@extends('model/homeLogin')


@section('title','用户注册')

@section('content')

<div class="reg_c">
@if (count($errors) > 0)
    <div class="mws-form-message error">
      <ul>
          @foreach ($errors->all() as $error)
              <li>{{ $error }}</li>
          @endforeach
      </ul>
    </div>
@endif
  <form action="/doRegist" method="post">
    <table border="0" style="width:420px; font-size:14px; margin-top:20px;" cellspacing="0" cellpadding="0">
      <tr height="50" valign="top">
        <td width="95">&nbsp;</td>
        <td>
          <span class="fl" style="font-size:24px;">注册会员</span>
            <span class="fr">已有商城账号，<a href="/login" style="color:#ff4e00;">我要登录</a></span>
        </td>
      </tr>
      <tr height="50">
        <td align="right"><font color="#ff4e00">*</font>&nbsp;用户名: &nbsp;</td>
        <td><input type="text" value="" class="l_user" name='username' placeholder="请输入6~12位用户名" /></td>
      </tr>
      <tr height="50">
        <td align="right"><font color="#ff4e00">*</font>&nbsp;密码: &nbsp;</td>
        <td><input type="password" value="" class="l_pwd" name='password' placeholder="请输入8~16位密码" /></td>
      </tr>
      <tr height="50">
        <td align="right"><font color="#ff4e00">*</font>&nbsp;确认密码: &nbsp;</td>
        <td><input type="password" value="" class="l_pwd" name='repassword' placeholder="请确认密码" /></td>
      </tr>
      <tr height="50">
        <td align="right"><font color="#ff4e00">*</font>&nbsp;邮箱: &nbsp;</td>
        <td><input type="text" value="" class="l_email" name='email' placeholder="请输入邮箱" /></td>
      </tr>
      <tr height="50">
        <td align="right"><font color="#ff4e00">*</font>&nbsp;手机: &nbsp;</td>
        <td><input type="text" id="phone" class="l_tel" name='phone' placeholder="请输入手机号" /></td>
      </tr>

      <tr height="50">
        <td align="right"> <font color="#ff4e00">*</font>&nbsp;验证码 &nbsp;</td>
        <td>
            <input type="text" value="" class="l_ipt" name="vcode" placeholder="请使用手机接收验证码" style="width:155px"/>
            <button id="lys" class="btn btn-default" style="width:100px;height:38px;margin-left:8px">获取验证码</button>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td style="font-size:12px; padding-top:20px;">
          <span style="font-family:'宋体';" class="fl">
              <label class="r_rad"><input type="checkbox" /></label><label class="r_txt">我已阅读并接受《用户协议》</label>
            </span>
        </td>
      </tr>
      <tr height="60">
        <td>&nbsp;</td>
        <td>{{ csrf_field() }}<input type="submit" value="立即注册" class="log_btn" /></td>
      </tr>
    </table>
    </form>
</div>

@endsection